﻿
namespace System.IMServer.Client
{
    /// <summary>
    /// 用户消息,这个是系统内置的类型,可以用这个来做基本的IM通信
    /// </summary>
    public class UserSendMessage
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public string Type { get; set; } = "SendMessage";
        /// <summary>
        /// 谁发的
        /// </summary>
        public string From { get; set; } = "";
        /// <summary>
        /// 来自于哪个ClientID
        /// </summary>
        public string FromClient { get; set; } = "";
        /// <summary>
        /// 来自于哪个客户端类型
        /// </summary>
        public string FromClientType { get; set; } = "";
        /// <summary>
        /// 目标用户ID
        /// </summary>
        public long To { get; set; }
        /// <summary>
        /// 客户端ID
        /// </summary>
        public string ToClientID { get; set; } = "";
        /// <summary>
        /// 目标客户端类型,不做业务处理做记录
        /// </summary>
        public string ToClientType { get; set; } = "";
        /// <summary>
        /// 发送的数据
        /// </summary>
        public string Data { get; set; } = "";

    }
}
